FROM ccr.ccs.tencentyun.com/goff/arm-webnginx:latest

# USER root

RUN useradd -r openresty
# 设置工作目录
WORKDIR /usr/share/nginx/html


# 复制静态文件和配置
COPY html /usr/share/nginx/html
COPY openresty.conf /usr/local/openresty/nginx/conf/nginx.conf

# nginx配置文件
# COPY nginx.conf /etc/nginx/nginx.conf

# 暴露端口
EXPOSE 80

# 启动 OpenResty（前台运行并指定配置文件）
CMD ["openresty", "-c", "/usr/local/openresty/nginx/conf/nginx.conf", "-g", "daemon off;"]